﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectQuaDep.Control
{
    public partial class Menu : System.Web.UI.UserControl
    {
        protected string class1 = "";
        protected string class2 = "";
        protected string class3 = "";
        protected string class4 = "";
        protected string class5 = "";
        protected string class6 = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            int pageType = BO.lib.PageType;
            if (pageType == 1)
            {
                //home
                class1 = " class=\"active\"";
            }
            else if (pageType == 6)
            {
                //san pham
                class2 = " class=\"active\"";
            }
            else if (pageType == 3)
            {
                //dich vu khach hang
                class4 = " class=\"active\"";
            }
            else if (pageType == 2)
            {
                //tin tuc
                class3 = " class=\"active\"";
            }
            else if (pageType == 5)
            {
                //download
                class5 = " class=\"active\"";
            }
            else
            {
                //home
                class1 = " class=\"active\"";
            }

            if (BO.lib.NewsID==3)
            {
                //liên hệ
                class6 = " class=\"active\"";
                class1 = "";
                class2 = "";
                class3 = "";
                class4 = "";
                class5 = "";
            }

        }
    }
}